<div class="row" ng-controller="LoginController as logctrl">

    <div class="navbar navbar-default " role="navigation">
        <div class="container-fluid">

            <div class="collapse navbar-collapse" id="example-navbar-collapse">
                <ul class="nav navbar-nav navbar-left">
                    <li><a href="#!/index"><span class="glyphicon glyphicon-user"></span> 菜鸟教程</a></li>
                </ul>
                <ul class="nav navbar-nav navbar-right" id="unlogin">
                    <li><a href="#!/register"><span class="glyphicon glyphicon-user"></span> 注册</a></li>
                    <li><a href="#!/login"><span class="glyphicon glyphicon-log-in"></span> 登录</a></li>
                </ul>
                <ul class="nav navbar-nav navbar-right" id="login">
                    <li><span class="glyphicon glyphicon-user">当前用户:{{logctrl.user}}</span> </li>

                </ul>
            </div>
        </div>

    </div>

</div>

